import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
import GoEasy from 'goeasy'
import axios from './utils/axios.js'
// import axios from 'axios'

// 引入g2可视化图表
import G2 from '@antv/g2'
Vue.use(G2)

Vue.config.productionTip = false


Vue.prototype.$goEasy = new GoEasy({
  host: 'hangzhou.goeasy.io',
  appkey: 'BC-1684034442574825818a03acf466bb83',
  onConnected: function() {
    // console.log('连接成功！')
  },
  onDisconnected: function() {
    // console.log('连接断开！')
  },
  onConnectFailed: function() {
    // console.log('连接失败或错误！' + error)
  }
})

Vue.prototype.$http = axios






new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
